#ifndef LOGINDIALOG_H
#define LOGINDIALOG_H

#include <QDialog>
#include <QMouseEvent>
#include <QRegExpValidator>
#include <QPalette>
#include <QFileDialog>

namespace Ui {
class LoginDialog;
}

class LoginDialog : public QDialog
{
    Q_OBJECT

public:
    explicit LoginDialog(QWidget *parent = nullptr);
    ~LoginDialog();
    void changeTab(int index);
    QString getUser();
private:
    Ui::LoginDialog *ui;
    QList<QPushButton *> btnList;
    QString msg;
    QString username;
    QString password;
    QString passwordr;
    QString head;
private slots:
    void slotLogin();
    void slotCancle();
    void slotChangeTab(int idx);
    void slotChangeHead();
signals:
    void btnClicked(QString msg);
};

#endif // LOGINDIALOG_H
